package com.qcby.service;

import com.qcby.common.ClassNote.ShowByPage;
import com.qcby.entity.*;

import java.io.IOException;
import java.util.List;

public interface ClassNoteService {

    //分页展示笔记信息
    Result<List<ClassNote>> showNoteInfoByPage(ShowByPage info);

    //获取满足条件的教案数量
    Result<Integer> getNoteCount(ShowByPage info);

    //添加笔记信息
    Result<ClassNote> addNote(ClassNote info);

    //删除笔记信息
    Result<Integer> deleteNote(int id);

    //通过id值获取笔记信息
    Result<ClassNote> getNoteById(int id);

    //更新笔记信息
    Result<ClassNote> updateNote(ClassNote info);
    List<ClassNote> getNoteByStudentName(Student student);
    //点击生成考试添加考试进入数据库
    Result<Exam> addExam(ClassNote info);

    //根据deepseek生成试题
    Result<Integer> generateQuestion(int e_id,String content) throws IOException;
}
